package com.xxl.job.executor.mvc.api;

import com.web.all.common.bean.response.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "app-manage", primary = false)
public interface ManageApi {

    /**
     * 用户新增和修改是系统数据同步
     *
     * @return
     */
    @GetMapping("/user/auto/save")
    Result autoSaveUser();

    /**
     * 用户删除时系统数据同步
     *
     * @return
     */
    @GetMapping("/user/auto/delete")
    Result autoDeleteUser();

    /**
     * 部门新增和修改是系统数据同步
     *
     * @return
     */
    @GetMapping("/organization/auto/save")
    Result autoSaveOrganization();

    /**
     * 部门删除时系统数据同步
     *
     * @return
     */
    @GetMapping("/organization/auto/delete")
    Result autoDeleteOrganization();
}
